﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CFE
{
    public class Project
    {

		public class WorkItem
		{
			public string OutputFilename { get; set; }
			public string SourceMapFilename { get; set; }
			public List<string> InputFilenames { get; set; }

			public Project Project { get; set; }

			public string Name { get; set; }

			public WorkItem(string name)
			{
				this.Name = name;
				InputFilenames = new List<string>();
			}
		}

		public string Name { get; set; }

		public string ProjectFilename { get; set; }
		public List<WorkItem> Items { get; set; }

		public Project(string projectFilename)
		{
			this.ProjectFilename = projectFilename;
			Items = new List<WorkItem>();
		}
		public void AddItem(string name)
		{
			WorkItem item = new WorkItem(name);

			item.Project = this;
			this.Items.Add(item);
		}

    }
}
